<?php defined('IN_PHPCMS') or exit('Access Denied'); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $head['title'];?></title>
<meta content="<?php echo $head['keywords'];?>" name="keywords">
<meta content="<?php echo $head['description'];?>" name="description">
<base href="<?php echo $PHPCMS['siteurl'];?>" />
<script language="JavaScript" src="data/config.js"></script>
<script language="JavaScript" src="images/js/jquery.min.js"></script>
<script language="JavaScript" src="images/js/css.js"></script>
<script language="JavaScript" src="images/js/common.js"></script>
<script language="JavaScript" src="images/js/login.js"></script>
<link href="<?php echo SKIN_PATH;?>base_yp.css" rel="stylesheet" type="text/css" />
<link href="<?php echo SKIN_PATH;?>yp.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top">
  <div class="f_r"><a href="javascript:window.external.AddFavorite(window.location.href,'<?php echo $head['title'];?>')" rel="sidebar" title="<?php echo $head['title'];?>">加入收藏</a>　｜　<a href="about/contactus/index.html">联系我们</a>　｜　<a id="StranLink" href="javascript:StranBody()" title="点击以繁体中文方式浏览">繁体</a>　｜　<a href="<?php echo BUSINESSDIR;?>"><img src="yp/images/business.png" align="absmiddle"></a></div>
  <div class="f_l">
  <div id="div_login" style="display:none">
<form action="<?php echo $MODULE['member']['url'];?>login.php" method="post" name="login" onsubmit="return loginSubmit(this, <?php echo PASSPORT_ENABLE;?>);">
用户名：<input type="text" name="username" size="12" class="input_blur"/>
密码：<input type="password" name="password" size="12" class="input_blur"/>
  <input type="submit" name="dosubmit" value="登录" class="button_style"/>
  <input type="button" name="register" value="注册" onclick="redirect('<?php echo $MODULE['member']['url'];?>register.php')" class="button_style"/>
  <input type="hidden" name="cookietime" value="0"/>
</form>
</div>
    <div id="div_logined" style="display:none">
<strong id="logined_username" ></strong>，<a href="<?php echo $MODULE['member']['url'];?>">会员中心</a> | 
        <a href="<?php if(PASSPORT_ENABLE) { ?><?php echo $MODULE['member']['url'];?>logout.php<?php } else { ?>javascript:logout('<?php echo $MODULE['member']['url'];?>logout.php?action=ajax');<?php } ?>">退出登录</a>
</div>
  </div>
</div>
<div id="head">
  <div id="yp_menu">
    <h1 id="logo"><a href="#"><img src="images/logo.gif" alt="phpcms黄页"/></a><a href="rss.php"><img src="images/rss.jpg" alt="rss"/></a></h1>
    <ul>
      <li><a href="<?php echo $M['url'];?>" <?php if($template=='index') { ?>class="s2"<?php } ?>>首页</a></li>
      <li><a href="<?php echo $M['url'];?>company.php" <?php if($template=='company') { ?>class="s2"<?php } ?>>企业</a></li>
      <li><a href="<?php echo $M['url'];?>buy.php" <?php if($template=='buy') { ?>class="s2"<?php } ?>>商机</a></li>
      <li><a href="<?php echo $M['url'];?>product.php" <?php if($template=='product') { ?>class="s2"<?php } ?>>产品</a></li>
      <li><a href="<?php echo $M['url'];?>job.php" <?php if($template=='job') { ?>class="s2"<?php } ?>>人才</a></li>
    </ul>
    <div class="clear"></div>
  </div>
  <div id="yp_submenu">
    <ul id="gy">
<?php $DATA = get("SELECT id,title FROM `phpcms_yp_buy` WHERE tid = 1 ORDER BY inputtime DESC", 1, 0, "", "");foreach($DATA AS $n => $r) { $n++;?> 
 <li><a href="<?php echo show_url('buy',$r['id']);?>"><?php echo $r['title'];?></a></li>
<?php } unset($DATA); ?>
<?php $DATA = get("SELECT id,title FROM `phpcms_yp_buy` WHERE tid = 2 ORDER BY inputtime DESC", 1, 0, "", "");foreach($DATA AS $n => $r) { $n++;?>
  <li><a href="<?php echo show_url('buy',$r['id']);?>"><?php echo $r['title'];?></a></li>
<?php } unset($DATA); ?>
    </ul>
    <ul id="search">
<form name='myform' id='myform' action='<?php echo $M['url'];?><?php if($template == "index") { ?>product<?php } else { ?><?php echo $template;?><?php } ?>.php' method='get'>
      <li>
        <input name="q" type="text" size="50" class="input_blur"/>
<input type='hidden' name='action' value='searchlist' >
        <input type="submit" value="搜索" class="button_style"/>
        <a href="<?php echo $M['url'];?><?php if($template == 'index') { ?>product<?php } else { ?><?php echo $template;?><?php } ?>.php?action=search">高级搜索</a> </li>
      <li id="keywords"><?php echo block("yphead", 1);?></li>
</form>
    </ul>
    <ul id="kj_menu">
      <li><a href="<?php echo $M['url'];?>company.php">企业大全</a></li>
      <li><a href="<?php echo $M['url'];?>product.php">产品大全</a></li>
      <li><a href="<?php echo $M['url'];?>buy.php?tid=1">供应</a></li>
      <li><a href="<?php echo $M['url'];?>buy.php?tid=2">求购</a></li>
      <li><a href="<?php echo $M['url'];?>buy.php?tid=3">二手</a></li>
      <li><a href="<?php echo $M['url'];?>buy.php?tid=4">促销</a></li>
      <li><a href="<?php echo $M['url'];?>job.php?action=list">企业招聘</a></li>
      <li><a href="<?php echo $M['url'];?>job.php?action=applylist">个人求职</a></li>
    </ul>
  </div>
  <div class="bk_5"></div>
  <?php echo block("yphead", 2);?>
</div>